// 埋点
exports.addUserStat = async (params, time, cloud) => {
	try {
		console.log("==============try==================")
		let query = `insert into tracking_message_record (data, gmt_create, gmt_modified) VALUES ('${params}', '${time}', now())`;
		let data = await cloudfn(cloud, query);
		return data;
	} catch (err) {
		console.log("==============err==================", err)
		return err;
	}
},

cloudfn = async (cloud, sql)=> {
	console.log("==============sql==================", sql)
	let cbData = await cloud.dataspace.executeSql(sql, [])
	console.log("==============cbData==================", cbData)
	return cbData
}




